<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .box {
            width: 500px;
            height: 500px;
            border: 1px solid red;
            position: relative;
        }

        .box h2 {
            text-align: center;
            color: white;
            position: absolute;
            top: 10px;
            left: 10px;
        }

        .box .img01 {
            position: absolute;
            top: 0;
            left: 0;
            z-index: 0;
        }

        .box .img02 {
            position: absolute;
            top: 50px;
            left: 50px;
            z-index: 1;
        }
    </style>
</head>
<body>
<div class="box">
    <h2>头像</h2>
    <img src="111.jpg" alt="" class="img02">
    <img src="222.jpeg" alt="" class="img01">

</div>
</body>
</html>
